import request from '@/utils/request';

export async function reqUserList(data: any, options?: any): Promise<any> {
	return request('/user/list', {
		method: 'POST',
		data,
		...(options || {}),
	});
}

export async function reqAddUser(data: any, options?: any): Promise<any> {
	return request('/user/add', {
		method: 'POST',
		data,
		...(options || {}),
	});
}

export async function reqUpdateUser(data: any, options?: any): Promise<any> {
	return request('/user/update', {
		method: 'POST',
		data,
		...(options || {}),
	});
}

export async function reqDeleteUser(data: any, options?: any): Promise<any> {
	return request('/user/delete', {
		method: 'POST',
		data,
		...(options || {}),
	});
}


